package cn.it.shop.service.impl;

import java.util.List;

import org.hibernate.classic.Session;
import org.junit.experimental.theories.ParametersSuppliedBy;
import org.springframework.stereotype.Service;

import cn.it.shop.pojo.Category;
import cn.it.shop.service.CategoryService;

@SuppressWarnings("unchecked")
@Service(value = "categoryService")
public class CategoryServiceImpl extends BaseServiceImpl<Category> implements
		CategoryService {

	public CategoryServiceImpl() {
		super();
	}

	@Override
	public List<Category> queryFetchAccount(String type) {
		return categoryDao.queryFetchAccount(type);
	}
	
	

	@Override
	public void update(Category model) {
		categoryDao.update(model);
	}

	@Override
	public List<Category> queryByHot(boolean isHot) {
		return categoryDao.queryByHot(isHot);
	}
}
